package com.question.business.dict.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 字典
 * </p>
 *
 * @author star
 * @since 2023-09-07
 */
@Getter
@Setter
@TableName("t_dict")
public class Dict implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 上级ID
     */
    private String parentId;

    /**
     * 类型ID
     */
    private String typeId;

    /**
     * 代码
     */
    private String dictCode;

    /**
     * 描述
     */
    private String dictDesc;

    /**
     * 排序
     */
    private Integer dictOrder;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 创建用户
     */
    @TableField(fill = FieldFill.INSERT)
    private String createdUser;

}
